package gwtappcontainer.server.apps;

import com.google.appengine.api.users.User;

import gwtappcontainer.server.apis.admin.GateKeeper;
import gwtappcontainer.server.apis.admin.Roles.Role;

public class APIBase {
	protected GateKeeper gateKeeper = new GateKeeper();
	
	protected void ensureRole(User user, Role... roles) {
		gateKeeper.ensureRole(user, roles);
	}
	
	public void setGateKeeper(GateKeeper gateKeeper) {
		this.gateKeeper = gateKeeper;
	}
}
